package com.rayson.yututu.model.req.picture;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author: rayson
 * Description: 根据关键词批量抓取图片请求
 * Version: 1.0
 * Date: 2025-01-08 20:25
 */
@Data
public class PictureBatchReq implements Serializable {
    private static final long serialVersionUID = 5208869257705730454L;

    @NotBlank(message = "关键词不能为空")
    private String keyword;

    @Max(value = 30, message = "最多只能抓取30张图片")
    @Min(value = 1, message = "最少抓取1张图片")
    private Integer num = 10;

}
